package com.zhonghui.common.core.exception;

import static org.springframework.http.HttpStatus.UNPROCESSABLE_ENTITY;

/**
 * @description: 数据校验异常
 * @author: FL
 * @create: 2024 2024/5/5 20:13
 */
public class DataOrCheckException extends RuntimeException{
    private Integer status = UNPROCESSABLE_ENTITY.value();

    public DataOrCheckException(String msg)
    {
        super(msg);
    }

    public DataOrCheckException(Integer status, String msg)
    {
        super(msg);
        this.status = status;
    }
}
